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).