MDL-48430 custom_menu: Malformed url in custom menu cannot break the platform
Scripts: add error option for CLI