An "opportunistic" thief is jailed for stealing a handbag from a pub that happened to contain a £2.2m Fabergé egg.