Fix for NPE in request-callback tests.