Check for blockDeviceMapping

Fixes #18493.

Addresses #16921.