Speculative fix for null pointer dereference.