Comentário oficial
Nope! Once an RTH event (button push, timeout, battery power) is triggered the aircraft is no longer using waypoints to fly anymore. Its job is to get home. No fancy flying is available anymore.
If you can't have that happening you will have to break your mission up into smaller segments that can be completed on a single battery without interruption which would allow it to follow the terrain throughout the flight.