Fix LogAction.getOptimizedCopy returning something that logs nothing.