If we're going to panic(), do it before dereferencing a NULL pointer.
If we're going to panic(), do it before dereferencing a NULL pointer.

Reported by:	"Ted Unangst" <tedu@coverity.com>
Approved by:	rwatson (mentor)

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase