Issue 3882: Use cast(void) instead of value capture on calls to assumeSafeAppend