Fixed #22998: Updated the fast_delete logic for GFKs

https://code.djangoproject.com/ticket/22998