Prevent `number-font-lock--major-mode' from losing value when changing major modes.