Add lost copyright header again


[ci skip]
Add specs for removing query menu items on the fly
Abort query menu item generation when there is no menu container