Created ingame.null_if_debug

-Returns a function if in debug mode, returns an empty function if not
-This way we only need to check for debug mode once