fixed small bug when passing empty menu items to __menu