I am stating this as per my experience with German auslanderbehörde and I suspect this may also be the same for Poland. When
While your visaresidence permit status is in processing"in processing" and you have expired your current visa is expired, then it is not possible to travel outside the country(even in schengen area or to even to your home country!) until foreign office has decision on your visaresidence status, even within Schengen area or your home country.
Usually, in case of Germany, the foreign office provide you an "bestätigung/acknowledgment" letter(in case of Germany, again might be something equivalent of this letter with Poland) stating that your visaresidence permit is currently being processed and your previous visa status will be applicable until decision is made on your application(except. Note that you now cantcan't travel to other countries with this letter).
Other countries as Poland might have an equivalent of this letter, and I suspect your stamp on the passport is the same as the acknowledgement letter.
Long term visa holders ex:studentas students or blue card holders, can request for fiktion visa in case of emergencies, which is valid for 3 months, but issuing this visa is solely decided by the foreign office.