Null check against collection query param

Also see similar questions that have been asked before: Issue with coalesce and lists after upgrading from Hibernate v5 to v6 - #2 by mbladel