[Pdi 11049] [5.1] PDI fails to connect to different Hive databases other that "default"

* Reformat code for checkstyle
* Fix backported from master