(RMenu) Add safety check in rmenu_init