Fix import_string masking of AttributeError

Fix #182
Merge branch 'issue182' into 0.9-maintenance

Fix #570
Fix #182
Merge branch '0.9-maintenance'

Conflicts:
	werkzeug/testsuite/utils.py