Issue nucivic/dkan#178 fixes fatal error

Additional fix in dkan_dataset.module for deleted resource.