Add a null check for observed date insertion