Fix for Fatal error: Call to a member function getParent() on a non-object in ConstantDescriptor.php

This method needs to be able to return false if $node is not an instance of Descriptor\ConstantDescriptor.