Do not hang if no file was found. Fixes #40