Fix : wrong inputID test

There was another "if inputID" instead of "if inputID is not None"