Deal with NULL reporters and empty task id contexts.

We hit a class cast issue when reading a cascading tap locally at the client side. This patch fixes that.