Ignore json_encode errors in LineFormatter