Minor bugfix with the unload event in MooTools