Validate last field in path only if the path doesn´t contain ? character