Error: Cannot access empty property

If a component does not support certain fields (and using null in 'field_mapings') the fatal error 'Cannot access empty property' occurs.

So, these fields should be exluded when creating the database query.