fixed unwanted behaviour in 'win_mean_for_lapply' - this function should never generate an error