Update bootstrap.php

Replaced initial fix by a less obtrusive version as suggested by @phproberto.