This can be easily overcome with the overline option.
overline: \overline
usage: \overline{test}
Explanation: The overline option should be used instead of bar option.
The following code demonstrates the difference
\documentclass[12pt]{beamer}
\mode
\usetheme{Boadilla}
}
\begin{document}
\begin{frame}[plain]
\begin{alertblock}{WRONG}
\begin{align*}
Z& = \frac{\bar{BMI}-\mu}{\sqrt{\frac{\sigma^2}{N}}} \\
& = \frac{\bar{BMI}-\mu}{SE(\bar{BMI})} \\
\end{align*}
\end{alertblock}
\begin{exampleblock}{RIGHT}
\begin{align*}
& = \frac{\overline{BMI}-\mu}{SE(\overline{BMI})} \\
\end{align*}
\end{exampleblock}
\end{frame}
\end{document}
Which produces the following slide