Fix exception handler when bucket does not exist.