One important point: You can
NEVER take away any scored goal except for offensive basket interference or goaltending - or for the "A Specific Unsportsmanlike Act" (I think case 10.1.18 or something close to that) where the wrong team takes the ball OOB after a free throw.
That should help you to begin with - the knowledge that you cannot simply "wipe" the basket.
Secondly, as Bob Jenkins has pointed out, this was not a correctable error. Remember the statue of limitations: The first dead ball after the clock has properly started.
The ball being live/dead and the clock being started/stopped are unrelated.
When something like this happens ask yourself two simple questions:
1) When did the clock properly start? (The clock could have "unproperly" started, for instance, if the timer accidentally hit start when he shouldn't have)
2) If the clock has properly started, is this is the first dead ball.
In your case the clock started when the free throw was rebounded. The first dead ball was after the basket was made by the rebounding team. By the time the game stopped on the OOB play, it was the
second dead ball.
It's really not that hard, but experience
IS the best teacher. My money says that you won't miss this one again Juulie!
While I'm correcting you, it's "...made very few mistakes, probably
fewer than
I."

(Sorry, my wife has a degree in English - guess it rubs off!

)