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.
Merge pull request #1429 from gammamatrix/patch-2

Fix for Fatal error: Call to a member function getParent() on a non-obje...