Handled possible exception in the entity_categories method and add a supported_entity_categories method.