Bug fix in MatchsController/$scope.switchStatus() with records without any status in firebase