Gutenberg default attributes are empty when accessing in edit

You aren’t defining any defaults in your registerBlockType

[...]
attributes: {
    content: {
        type: 'string',
        default: 'I am a string',
    },
},
[...]

Worth noting also that the attributes will only get saved in your final markup once they have a value – it won’t save the defaults in the content.