Be resilient to fn.name not existing in IE

Fixes #516.