It happens, the main thing is that you've recognised it and have already learnt from it.
I got away with a similar one recently, handball in the penalty area which was as clear as day. I think 'Great, penalty, that's an easy call,', so I blow the whistle for a penalty and just as I'm walking to...