Fixed modal dialog bug in Safari 5.1 (aka the "mother-in-law's iMac bug").