Fix crash when calling setMenuHeader(View v)

Similar to the fix for #6, this fixes the crash when calling setMenuHeader(View v).