bainsey wroteRight, but he's talking double personal fouls here. If a goal is involved, the double personal foul typically happened during the shot -- no team control. Your point on end of period is well taken: tweet, double foul, horn. I'm struggling to think of a scenario where a double foul would precede a violation.
Player jockeying for rebounding position...double foul while a try is in flight. Try goes in. You had a double foul with no team control, and according to your statement, we'd go to the AP, but there's a goal involved, therefore you wouldn't use the AP and the opposing team would have an unrestricted throw-in on the endline.
The problem with your statement is you'll have officials that would at times, erroneously give the ball back to the team that just made a basket or force a change of the AP when it's not warranted, if they followed the rule you didn't fully qualify.