Fix a regression where $j->encode({a=>undef}) threw an exception.