Minor: Fixing bug when popupOptions is undefined.
2.1.2