89a98eb fix coverity 11895 - null deref - caused by fix to ticket 47392

Authored and Committed by rmeggins 9 years ago
    fix coverity 11895 - null deref - caused by fix to ticket 47392
    
    reviewed by: nhosoi (Thanks!)
    (cherry picked from commit b61143cc79cb5c3e23f403c4980f8a03ab7426c0)
    (cherry picked from commit 03a67b1432bbafe5eb7a82a8afd0832f220c229b)
    (cherry picked from commit 877fee5b6228faf471eefed9a073dff13074b224)