The small dome was originally for an "astrotracker". When Boeing first offered the military the 747 one of the requirements was not INS but an astrotracker. It was a navigation device that locked onto the stars and provided heading, drift information to the navigator. I know they were in the B-52, SR-71 and some F-4s.
No doubt the airlines passed on that and went with INS instead.