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