If you have an annotations: field with no contents, this gets a value None rather than provoking a KeyError, which upsets ensure().
annotations:
None
KeyError
ensure()