Fix invalid syntax in case no properties have been set for entity.