Isolated an exception-causing line with a try/except, fixes memory leaks.

Change-Id: I0b68a6712c48ac8816ec7ed37a86851810506e40
Merge topic 'pvweb-fix-lookup-table-usage' into next

cb283a35 Isolated an exception-causing line with a try/except, fixes memory leaks.