Event_createResponse: keep same behaviour when sender is not passed explicitly
TextDocument: fix incorrect warning
Replace deprecated text_format accessors by content_type