Use decorator to catch ObjectDoesNotExist error.