Amended to throw Aws\View\Exception\InvalidSchemeException, added test for this.