Resolve request scheme from base_uri attribute if available.
Fix WebQMenu redirect logic in case envelope contains irrelevant XML files.