Use angular.noop instead of null as callback when there isn't any defined to avoid errors after upload