Fix electric-pair-mode conditions

I mistook #226. We should check whether electric-pair-mode is enable
and whether elec-pair.el is loaded.
Merge pull request #227 from defunkt/fix-for-electric-pair

Fix electric-pair-mode conditions