Mir: Fixed crash if creating default cursor failed.

Found by Cppcheck.
1 file changed