Added some checks for the queue file

Makes sure that at least the default category is created.