only show debug out if Debug true is enabled
small fixes to make this work again on newest codebase
there are some times a Fragment can exist but its Activity is null