projectm: fix NULL or uninitialized pointer dereference