Beez3: when elements aren't found it broke others scripts in the page

How to reproduce the issue : 

Unpublish the horizontal menu in the top of the page and then you will have a javascript issue in mootools, the menu that i'am talking is which one is in grey here : http://hpics.li/40d006d