Fix install_handler undefined var making the upgrade fail