Gracefully fall back from invalid layouts.