But what I will fault you for here is making that flop raise without going so far as to think ahead to what you were going to do if called and checked to on a blank turn.
Thinking about what to do and not coming up with a satisfactory answer (hence the post), and not thinking about what to do at all are two different beasts.
For the record, I half-potted the turn and he folded.