clientexec/webapp#1651: Fix issue with doRegister not returning properly