Fixes bug which caused exception when processed model contains GenericRelation field.