I haven't traced through the code sequence thoroughly, but if you have a FK to a model that is not available, and you know in fact it is missing (app not installed etc), isn't that cause to raise an error?