Fix null error bug with logging functions

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