Fix crash when calling setMenuHeader(View v)

Similar to the fix for #6, this fixes the crash when calling setMenuHeader(View v).
Merge pull request #23 from intrications/patch-1

Fix crash when calling setMenuHeader(View v)