Fix type() usage check in validate-modules.
Fix type() usage check in validate-modules.

This avoids false positives when 'if' or 'or' are in a string
preceding the use of type() on the same line.

thaim/ansible,thaim/ansible