HR-377 Fix to custom_data_entities() function not to have entities while related component is disabled

The testCustomDataGet() function was failing for entities whose components were disabled. So here checked if related component is enabled or not and then proceed with the test.