A study of event mixing for two-pion Bose-Einstein correlations in the $\gamma p \to \pi^0 \pi^0 p$ reaction