Is there any science fiction screenwriter who knows how BIG space is?
Space is empty. Solar systems are light-years apart. The likelihood that a ship would collide with an asteroid close enough to a planet that it can do an emergency landing is infinitesimal. Unless Earth was the destination, which doesn’t seem to be the case (and if it were, wouldn’t the freaking pilot be awake for the final approach?), it is extremely unlikely that the ship would be inside a solar system.
This is a very common mistake in science fiction movies and TV shows. There is always a planet nearby when you need one.