The problem this code fixed seems not to occur with Beamer 2.7