Fixed condition constains operator with wrong data type

"contains" operator on wrong data type should not cause NoMethodError.