Fixed IPython 2.0 import error handling in widgets