[#2212] CID49418:

Added a null check