bug fix: MenuItem and SubMenuItem could not be created with isPublic === false

Whenever the user created a new MenuItem or SubMenuItem with isPublic === false, isPublic was defaulted to the same value of the parent menu due to a bug in the comparison.