An empirical estimation of the cosmic variance for merger fraction studies based on close pairs