Same thing just happened to my truck.
You can take off the inside panels with the door closed, then reach up inside and pull the cable to release the top latch. The latch and cable come as an assembly, and are about $72 at the dealership.
Unhook the cable from the inside release handle, and take out the three bolts on the latch, and it pulls right out.
Kinda pricey I thought....