[PATCH openEuler-1.0-LTS] block: don't get gendisk if queue has not been registered