Fix incorrect network prefix in Java Meterpreter

Apparently, getNetworkPrefixLength can return -1, which confuses the Ruby
side. Therefore fall back to guessing the prefix in this case, as we do it
for Java <= 1.6.
Add bins for #1748
Land #1748, fix for java meterp network prefixes

[Closes #1748]