Minor modifications to annotation handling to support annotations in 2.3.0

By the looks of the existing `_extract_annotations_from_task` method, the serialized annotation format has changed since writing; this modification will support both the former and current serialization formats.