Fix null error bug with logging functions

The logging functions were null when `FLX_NO_DEBUG` which causes a crash when they are called with that conditional set.