Bugfixes to DocumentParser::checkWebUserPassword()