lib/java: fix LogMessageOutputProtocol size check