Fix two missed return values in compose_write_to_file() from commit e9f610a4f.