fix order of operations regression in referenceTargetUnreachable

We need to dereference the GcJreference** before we change what it
points to.  The code was mistakenly reordered in the recent type
refactoring.