Added a check in operatorLookup so bad operators give a proper error message instead of segment fault.