Fix for --disable-amr.

We need the my_next_elem counter to get incrimented always, even when AMR is disabled.