For issue #811 on mgonto/restangular