Fix NPE while running application integration tests