Assert if ScratchRegisterManager is unable to provide a register
The ScratchRegisterManager quietly returns NULL if it is unable to provide a scratch register. This is actually a serious problem and the logic should assert fatally rather than return NULL.