Fix: Add new function to test for invalid attribute values in logical expressions.

Reported-by: gwierzchowski
https://github.com/taskjuggler/TaskJuggler/issues/100