Tried your fix using Nate's test plan and it's doing its job for me: broken before the patch, working as intended afterwards. The patch itself seems sensible, assuming that we won't find a device that automatically turns on the keyboard backlight when the user had actually turned keyboard brightness to 0 before suspending.
I'd give this one an approval, but not if @ngraham objects.