When the mouse is not inside the Blender window, `CTX_wm_area(C)` returns `NULL`, but this wasn't checked for.