add elevation graph null check