After watching the replay several times, I think it was incomplete. The receiver was falling down as he attempted the catch, so he had to maintain control as he hit the ground, which he didn’t appear to do. The back angle seems to show the ball move pretty much the instant he hits the ground, and if he ever fully got it back, it certainly wasn’t before the Miami player touched it while being out of bounds, which would kill the play.
The refs made their job a lot harder by calling a touchdown on the field though. As hard as it was to find the ball on some of those replays, that initial call left some wiggle room for it not to be completely unreasonable to claim the play should have stood due to inconclusive evidence.