Core: Fix issue when adding annot without contents

Fixes segmentation fault caused when generating appearance of a new
free text annotation, without any content.