Fix making relative URL when running with https and Jenkins returns an http URL for queue items.
Fix making relative URL when running with https and Jenkins returns
an http URL for queue items.

lhupfeldt/jenkinsflow,lhupfeldt/jenkinsflow,lhupfeldt/jenkinsflow,lhupfeldt/jenkinsflow