Update bootstrap.php

just declared $entity as null to prevent warnings.