AUI-806 - AUI Panels unable to close panel when panel created from markup

http://issues.liferay.com/browse/AUI-806