Fix uncaught exception on levels without categories