user32: Fix handling of NULL paint struct in BeginPaint.