handle null and classes in the tag. Added debug only SugarLog.x() method.