On a railway route that’s survived against all odds, Ben Lerwill embarks on a journey along the 150-year-old Heart of Wales Line, combining train travel with hiking trails—and a dash of unpredictability.