Scaffolding causes exception when passing an empty string for file content