[FormExtractor] fixes Fatal error: Call to a member function getDocComment() on a non-object 

fixes Fatal error: Call to a member function getDocComment() on a non-object