Fix st_shortestpath do not return null or unused values

If there is any shortest paths do not return a row with unused values.