Fixing null DateTimes returning current date

In the old function, if the date passed was null or an empty string we would just return the current date.