fix edge case in update.php

could lead to only a white page