Move negative result check
Merge pull request #125 from Metaswitch/iss124

[No reviewer] Move negative result check