Check for null class in domManipulator