Add missing empty/undefined handling to fix a bug where defining new functions without `revertCode:` fails.
UserSelection