Fixed bug that uses Doctrine parser

when using this property use_simple_annotation_reader=false with doctrine and swagger.
the docparser returns all annotations which swagger in return uses to  call the method: 'hasPartialId'.
Incase with for example a doctrine annotation this fails because this is not an instance of Swagger\Annotations\AbstractAnnotation.