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.
Merge pull request #146 from zenoss/feature/ZEN-10992

Please review branch feature/ZEN-10992