Fixed nil dereference reported by staticcheck
Fixed nil dereference reported by staticcheck

Signed-off-by: Ivan Kozlovic <a15f8b81a160b4eebe5c84e9e3b65c87b9b2f18e@synadia.com>

wallyqs/gnatsd,wallyqs/gnatsd