Fix for running in php 5.2 without namespace

Added a check for the existence of ReflectionClass::getNamespaceName() to use the mapper also in a php 5.2 environment