Catch exception instead of InvalidTalesException.

It turns out that InvalidTalesException wasn't introduced until Zenoss
4.2. Catching Exception is less specific, but at it works on all
supported versions of Zenoss.

Fixes ZEN-10992.