ensure shipping method is not null

fix shipping method issue mentioned in issue #39