Fix electric-pair-mode conditions

I mistook #226. We should check whether electric-pair-mode is enable
and whether elec-pair.el is loaded.