Fix failure message of `create_remote_file` without attributes

Ensure we return the string also if `@attributes` is nil.