Circumvent clang optimizer check for NULL pointer dereference