update custom JSON encoder to always safely return something (an absurd value), even in an exception case