This might be expected, then... during a reboot, on a real Pi, the browser doesn't come up so early; here it seems the JS is there waiting / polling... and as soon as the PHP is ready to answer, it does so when the worker is not done yet... fantasizing here, but makes a lot of sense to me...
Of course, acknowledgement of the scenario in the backend could help in showing such errors only when indeed they might be real errors.
Of course, acknowledgement of the scenario in the backend could help in showing such errors only when indeed they might be real errors.