No problem at all. SInce you are I-485 pending, you are legally staying in AOS (Adjustment of Status). When you leave the country with AP, you need to the I-94, and you will get new one when you enter the country.