Fix bug in error checking during shill_contents