fixes an issue where corporation_affiliation could return nothing

As mentioned in the title, fixes an issue where corporation_affiliation could return empty, found by hitting back after deleting an api key