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

* Reformat code for checkstyle
* Fix backported from master