QueryResultSerializer check instanceof Title to avoid failure on a non-object

Avoid failure Fatal error: Call to a member function getFullText() on a non-object
Merge pull request #38 from SemanticMediaWiki/serializer

QueryResultSerializer check instanceof Title to avoid failure on a non-o...