Fixed CID 1037074. Useless null pointer check. Created ticket #6144.