Debug logging to help diagnose the blank custom panel issue (not part of the fix)
Kludgy fix for blank custom panel problem

Explanation: detaching a custom panel from the DOM triggers PlaceManager to clean
up the activity and the panel. This code was detaching and reattaching the custom
panel two times after asking PlaceManager to display the activity in it.