Fix error when empty entry is sent and day is yet to be created