Fix to handle CSV generation

Needed as workarounds for flakey input (alert) data caused NullPointer
errors