[BZ#1020846] Fixing NPE problem, Using service name as truststore alias for the certificate retrieval.

Porting fix from PL 2.1.9 (EAP 6.2).