That's the correct call, if the penalty were against the defense and they missed the field goal, they would get one untimed down, but if the time expires on a play where there is an offensive penalty the defense can accept the penalty which will nullify the down and end the half.