This can happen if you're doing it quite fast, relative to the times it takes the app to determine prev / next messages.
And then if it has nothing to jump to, it returns to message list.
The key word here is "relative to", so if the app's database has gotten somewhat slow, please try Menu -> Compact the database in the app's main window (account list).