annots: Fix a crash when adding annot without contents

Having no content in an annotation results in a crash when generating
its appearance, since the contents pointer is dereferenced.
For consistency, the same has been done in Annot::initialize.
glib: Return NULL in poppler_annot_get_contents also for empty strings