Added TypeError exception handler to attachment parser which might help issue #3