Fix NPE in annotation deserializer