bugfix: NPE when e.getCause() return null