#261148 by chx, pwolanin: The menu's first rebuild does not always happen properly due to race conditions, so look to rebuild the menu if the masks are empty.