Disable menu usage of a quicksave script

I'm using a quicksave script created by Adiktuzmiko, and every time I use it on the title screen of the screen, I get an error:

Script 'Game_Map' line 336: NoMethodError occurred.
undefined method 'each' for nil:NilClass

I get this error only when trying to quickload from the title screen. Can someone please modify the script or write a fix for it, so it cannot be used on the title screen? Or if someone could make it work on the title screen, that would be fine too.

Link to script
Add the following
Code:
        return if SceneManager.scene_is?(Scene_Title)
after two spots.
Code:
      if is_quicksave and not SceneManager.scene_is?(Scene_Save)
        return if SceneManager.scene_is?(Scene_Title)
and
Code:
      if is_quickload and not SceneManager.scene_is?(Scene_Load)
        return if SceneManager.scene_is?(Scene_Title)
This will block saving and loading from the title screen.
Thanks, Roninator2, works like a charm 🙂
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/disable-menu-usage-of-a-quicksave-script.90890/