WW-4146 caches only valid OGNL expressions, closes #12