Fixed crash in GraphHelper when Pill is null