Make sure the files queue is set to a valid array. Fixes #2333.