Fix model name inference
Merge pull request #84 from cartolari/inherited_resources_resource_name

Fix the case where the constant does not exists