Fixes #1311.

Don't use empty strings as files.