Fix external account deletion through graphQL if no GitHub App accounts exist
Created by: pjlast
When a GitHub external account is deleted, but there are no corresponding GitHub App external accounts, the account list is empty, which causes a SQL error.
What this means is that you're unable to delete your normal GitHub external accounts.
This fixes that.
Test plan
Added test confirming the bug, then fixed it.