fix #462 aria.widgets can be undefined in TemplateCtxt

When no class in aria.widgets package is loaded, aria.widgets is undefined.
Before checking if aria.widgets.AriaSkin is defined, the existence of aria.widgets has to be checked first.