Coverity 1453632 & 1453635: Null pointer dereferences (FORWARD_NULL)