title: TypeError: undefined is not an object- git push fails
body: <p>I have an angular code which runs fine on the machine with no error, then i want to commit the changes to git, my commit cmd ran successfullly but push fails saying:</p>
  
  <p><strong>PhantomJS 2.1.1 (Windows 7 0.0.0) Controller: BasicInfo... controller navigation... save and go to summary FAILED
  TypeError: undefined is not an object (evaluating 'data.responseMessage')</strong> </p>
  
  <p><strong>data.responseMessage holds bool value</strong>. I thought of adding a condition check for undefined as below but no luck.</p>
  
  <pre><code> if(data.responseMessage !== 'Undefined' {
      res = data.responseMessage;
   }
  </code></pre>
  
  <p>My actual partial code is here:</p>
  
  <pre><code>       function save() {
            if(vm.basicInfoForm.$valid) {
              blockUI.start('Saving personal information');
              employeeService.setEmployee(vm.employee)
                  .then(function Success(data) {
                      res = data.responseMessage;
  </code></pre>
  
  <p>The value for data.response is coming from employee.js file and below is the code:</p>
  
  <pre><code>   function setEmployee(employee) {
          _employee = null;
          return Restangular.one('someURL').customPUT(employee)
              .then(function Success(data) {
                  var responseData = {
                      responseMessage: data.isAddressChanged,
                      employeeData : _employee
                  };
                  return responseData;
              })
              ['catch'](function Failure() {
                  var responseData = {
                      responseMessage: false,
                      employeeData : null
                  };
                  return responseData;
              });
      }
  </code></pre>
  
  <p>I think it could be because of some test case failure while git push.
  Any help appreciated!</p>
  
  <p>Thanks,
  Haseena</p>