Avoid unnecessary content parse in InternalParseBeforeLinks

* Use ParserOptions::getInterfaceMessage to determine whether a parse
request was initiated from Message::parse or not
* Don't perform a parse on an empty text
Merge pull request #545 from SemanticMediaWiki/no-parse-on-msg

Avoid unnecessary content parse in InternalParseBeforeLinks