Stop flooding the log, when previews are disabled

Fix #12571 

@LukasReschke @MorrisJobke