Another NPE check, this prevents a crash, but we should investigate where this is coming from.