Refactor #4365: Use undefined check in cc.MenuItemSprite.prototype._ctor