NEXUS-6501: Validating path before doing HTTP request

Added code to verify the path before doing any
remote HTTP calls, to prevent HC4 Http method
to throw unchecked exception, and thus create
a huge log spam with stack trace.

The fact and invalid path is logged.