Don't report error if a relative ID is not found when inserting a menu or a menu item.

Also remove a local variable declaration that is override the passed in parameter.