[FLINK-27676][python] Fix on_timer output behind triggering watermark