The next spec release will change the errors raised by RequestHandle to NotImplemented (for bad handle types) and InvalidHandle (for bad identifiers). My 'invalidhandle' branch implements this.
Fixed in imminent 0.7.23 release.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.