[NEXUS-5214] Ensure that non proxy hosts can not be nullified

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>
[NEXUS-5214] JavaDoc & Tidy

Signed-off-by: Alin Dreghiciu <adreghiciu@gmail.com>