check null when parse remote exception

throwable t may have not set detail message.
in this case,PATTERN.matcher would throw a null pointer exception.