Allow empty yaml vars files

Fixes #7843