Doctrine Common

[GH-274] Improve code on loadMetadata() to verify if class exists