end_path to be the first and last visible path.
Note that there may be invisible paths in between.
Both paths should be freed with free after use.
Return location for start of region, or null
Return location for end of region, or null
true, if valid paths were placed in