catched selectpicker init error in javascript when element is not defined