Fixed date converter so it doesn't fail on empty string