Improve invalid operator assignment handling.