Well, in what way do you think the truth of the premises does not guarantee the truth of the conclusion? In which situations is the promise "If the premises are true, the conclusion will be true" broken?
The definition of validity is:
For all interpretations it holds that if all premises are true under that interpretation, then the conclusion is true under that interpretation as well.
The negation of this is
Not for all interpretations it holds that if all premises are true under that interpretation, then the conclusion is true under that interpretation as well.
which is equivalent to
There is an interpretation for which it does not hold that if all premises are true under that interpretation, then the conclusion is true under that interpretation as well.
which is in turn equivalent to
There is an interpretation such that all premises are true but the conclusion is false under that interpretation.
That is, an argument being invalid amounts to saying that there is a concrete counter interpretation which makes all premises true but the conclusion false. If there is no interpretation which can make all premises true to begin with, then in particular there can be no such counter interpretation. If there arises no situation in which the condition on the truth preservance guarantee (the truth of the premises) takes effect, then there is no situation in which this promise can be broken.
So yes, the argument is valid, precisely for the reason cited by your teacher. An argument that is valid because the premises are contradictory is called vacuously valid.
You may be interested in the notion of a sound argument: A sound argument is one which is valid and where in addition the premises are true in the real world. Premises which are contradictory can obviously not be true in the real world, so the above argument is unsound. This may be closer to your intuition of a "correct" argument than the notion of validity.