Fix some error cases around missing ER files and folders.