Check if _className is defined before applying in Drawer.Element

Previously, we blindly attached the class, which would attach the
CSS class "undefined" to elements.