Fixed wrong validation of json empty objects