I've seen this "bug" occur twice now. I had a ship sitting on a resource starbase. The base had minimal armament. An enemy fleet attacked and engaged the base instead of my ship. The base was destroyed. In the aftermath, during the remainder of the turn change, my ship reformed a new starbase on the resource and became unavailable to move during the next turn. The new base was, of course, promptly destroyed.