Fix EC issue on Fedora 20

Fix for #1143
I'd still prefer this be broken up into a `try:` caluse for `_elliptic_curve_to_nid` and then a normal `if` for what is now the `raise`.