prevent XFREE from freeing NULL pointer under Freescale MQX