Its totally wrong. As long as you have a valid H1B stamp, you dont need to wait until your AP gets approved for leaving USA.
The question arises only when you have already started working on EAD and you need AP to re-enter and incase you dont have an approved AP before you leave US, then you run into problems/issues and even denying your immigration status...
Hope it helps.