That bug is convenient here, but getOffsetParent should probably do the right thing and return the BODY element on IE6. I remember that it was once fixed but it was reverted to clean up a 1.6.0.3 release.
Could still use the logic behind the bug to test but perhaps there's a better way. What quirk does this fix?