[TECHNICAL-SUPPORT | August 30] LPS-39666 Hidden pages break page sorting in navigation bar

Hey Tamás,

I've changed the logic according to our discussion at https://github.com/moltam89/liferay-portal/pull/253.
Now, it sets the new priority, only if the backend services finished successfully.

Best,
Tibor