Uses try/except to catch ValueError

Before this simple fix, every request on the Admin would result in a ValueError on line 1195 (pre-change line no.)

Tests pass.