Fixed NPE issue in PrestoContext.toString