user32: Avoid releasing a potentially null pointer.