fix null == check when resolving module