Bug with Yanfly's Victory Aftermath plugin

Hello! I am currently working on a game that has experienced no other issues up to this point, but I got this popup randomly after finishing a random encounter. Does anyone know how to fix this issue? Thanks!
This is happening because you are doing a battle on the map, not in scene_battle.
But to stop the error you just need this.
Ruby:
#==============================================================================
# * Scene_Map
#==============================================================================

class Scene_Map < Scene_Base
  #--------------------------------------------------------------------------
  # new method: show_victory_level_up
  #--------------------------------------------------------------------------
  def show_victory_level_up(actor, temp_actor)
  end
end
Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/bug-with-yanflys-victory-aftermath-plugin.170260/