Update portscanner.js

Added Flipped the order of the check...sometime we don't care about an error if the status matches.  In the case of looking for an port not in use we actually want the timeout to trip.