Fix MsfVenom Java Payload Generation

This PR fixes a bug in the PayloadGenerator class that caused Java payloads to not be generated correctly.