SurfaceFlinger: call setFrameTimelineVsyncForTransaction with valid id

Remove unnecessary calls to setFrameTimelineVsyncForTransaction when
the vsync id is not valid.

Test: atest SurfaceFlinger_tests
Bug: 171252403
Change-Id: I6233baf5f623c1bc0f3856abb360982c566328ab
1 file changed