Fix subroutine exit via next warning.