Fixed another assert exposed by fuzzing. The utility function getRegisterEnum()