fetch from XOOPS master and patch for class/themesetparser

check $parser agrument before calling methods