I once had a female renew her expired registration on the side of the road on her iPhone.
She showed me the temporary reg on her phone (obviously couldn't print it out) and on she went. I don't remember if the reg was updated that quick when I ran it again on the mdt.
Point is if you registered it correctly I am not sure if it would show up within 24 hours in the BMV system. That is why you have to print out the temporary registration paper.
The officer could only go by your lack of proper documentation and the BMV inquiry on the mdt.
Keep all of your documentation and follow the instructions for a court date and present it along with your explanation to the judge. He may understand your situation and find you not guilty of the second ticket and you would be refunded the fines.
However I am not sure about the towing and impoundment fees. While the PPA did what was proper at the time of the car stop, I am not sure how they would go about refunding their fees. Again make sure you keep all of your documentation, including hopefully a not guilty verdict from traffic court and take it to the PPA.
You will probably have to put out all of the cash first and then hope for a refund.
Like Billy says, I am sure you won't let your reg expire again in the future. You can register 60-90 days before expiration so take advantage of it.
"We do sincerely hope you all enjoy the show, and please remember people, that no matter who you are and what you do to live, thrive and survive, there are still some things that make us all the same. You, me, them, everybody, everybody!"