Closes #346, Fix reading empty layout on Windows