Hmm, that could be the movie I’m thinking about. If it is, I’ve grossly misremembered its sequence of events.
[JEDIT]
It’s possible I conflated Blackbeard’s Ghost with this episode of Are You Afraid of the Dark? Truly wonderful, the mind of a child is.