Fix for getOperationDocumentation to check the type of documentation node and do smart text extraction.