FIX: if no group is found, raise correct error

FIX: if no group is found, raise correct error

Previously missing group could lead to an error cause can_see_group_messages expects a group.

diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb
index bd662ab..24797d6 100644
--- a/app/controllers/list_controller.rb
+++ b/app/controllers/list_controller.rb
@@ -154,6 +154,7 @@ class ListController < ApplicationController
     when :private_messages_group, :private_messages_group_archive
       define_method("#{action}") do
         group = Group.find_by(name: params[:group_name])
+        raise Discourse::NotFound if !group
         raise Discourse::NotFound unless guardian.can_see_group_messages?(group)
 
         message_route(action)

GitHub sha: dce51847