[PDI-9598] User defined Java Class Step treats the Info stream as an Input stream

<h1>DIRECT-MASTER</h1>
* Changed correct null comparing
* Added unit testcase