Fix protractor return code checking for failed tests

Match return code as per https://github.com/angular/protractor/blob/master/lib/launcher.js#L14