Hacks try and catch to avoid exception

Running jasmine tests was causing issues when client was valid still we got an
exception.