Fixed check for title and text options

Fixes error like

Notice: Undefined property: Maps\Line::$text in /srv/semantic-mediawiki_org/www/core/extensions/Maps/includes/Maps_BaseStrokableElement.php on line 45

Notice: Undefined property: Maps\Line::$title in /srv/semantic-mediawiki_org/www/core/extensions/Maps/includes/Maps_BaseStrokableElement.php on line 49

Change-Id: If36c2fbcf6c90f46dac019c8839bee54636ddd4e