minor refinement to mean_na function in summarizeSGP