This is not a bug, it is a server-side design choice. In doubles, you can always determine whether your Pokémon (except the last one) are trapped without committing to an action, since you have the buffer of the following Pokémon.
Theoretically, Regirock is in a "maybe trapped" state, but in...