Fix NPE when request-endpoint not provided