Improve use of operator has no effect messages, closes #1431