Fixing some E_NOTICE bugs around the date header