Fix KeepalivePacketDataUtilTest crash on eng build am: 8f260383f7

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/15164999

Change-Id: I64c9bd2da7cbfd6d6c254287309e0738201c336f