Found this thread to solve the problem: http://forum.inductiveautomation.com/t/try-except-when-reading-tags/16179