Checking for some null pointer exceptions that probbaly occured due to
some race conditions