Bug 711043 - Factor out operator type checks from the middle of feMorphology loop. r=roc a=bajaj