Fix #23 - Handle polymorphic belongs_to associations in Rails 4 that have a mix of non-nil and nil values.