Hotfix: Protect against nil pointer exceptions for pings

Cherry-picking @jrconlin's fix from #103.