Re #6340. Only call validateInputs() if individual properties are OK.

A crash was seen because validateInputs was being called even if the
checking of properties one-by-one hadn't passed (so in this case, the
InputWorkspace property was not set and validateInputs tried to use it).