Fixed #61. Ensure $scope.report is defined.