DERBY-6179  Insert some guarding code into the first replication test to check port availability

Add simplification suggested ny Knut; no functional change.

git-svn-id: https://svn.apache.org/repos/asf/db/derby/code/trunk@1469165 13f79535-47bb-0310-9956-ffa450edef68