Removing debug from theme and fixing a php notice