Update panel.show()

Only check for misplaced anchor once.

If checking for the DOM element after reassigning variables, then anyone using an anchor will always receive a warning.