Fix phantomjs by using fnNameFor

Phantomjs's execptions toString include a ': ' at the end, so instead
use the exception's name property