Extensions: Rescue from throwing exception.(#863)

Fixes #863.