Prevent submit on empty path.