Fixed NPE when setting exceptions with no messages