Check for existence of handle_equipping_gear function, in case this is called
before the function is defined.
Fix var name typo.