The Protoevangelion also attempts to show the danger pregnancy might hold for the young Mary and, surprisingly, for the elder Joseph too. It seems the BBC drama attempted the same thing, causing a bit of a kerfuffle as a result. Matthew is the one canonical source that alerts us to the fact that being unexpectedly pregnant when betrothed might be the cause of a problem by telling us that when Joseph learnt of her condition, he decided to "dismiss her quietly" rather than "expose her to public disgrace" (Matt 1.19). The BBC's Nativity wasn't content with that. Instead, according to this report in the Guardian
It shows the mother of Jesus trying to flee a hostile Bethlehem crowd and a
rabbi refusing her the haven of his synagogue, letting her escape through a back
"The Gospels tell us there was no room at the inn, not that a rabbi kicked Mary
out of a synagogue," he said. "Having survived Mel Gibson's anti-Jewish Easter
onslaught The Passion now the season of goodwill has been spoiled."