COMMON: make XMLParser::loadStream() fail when stream is null

Some users of this method relies on it to fail when
an invalid stream is passed to it
(E.g. VirtualKeyboard::openPack).
Merge pull request #534 from skristiansson/pr/loadstream

COMMON: make XMLParser::loadStream() fail when stream is null