Forgive my bump, and this is likely too late for the OP, but it may serve other people well in the future. Here's how I did it:
Start by solving for your true anomaly. The direction that the satellite is flying (towards perigee) will give you a clue as to which quadrant theta is in. I came up...