Fixed to limiting null comparision. Moved auto release and reset of promise object into next tick using immediate().