ignore null resource object instead of throwing an error