Fix unhandled exception on irclogs page

Code triggered an error when the channel directory is not readable.