Update Cache.java

Fixed another NullPointer if the processor doesn't have a reference message but we're checking for acknowledgement anyway.