Little fix in Pruner: check variable type after Pruner.

In the cleanup pass after pruner, if the type of a variable
is a pruned type, set the type to be JNullType.

Change-Id: I1f6b80d57e71fb03d91bfc2c8edbcf2f1337dbb4