Fix bug in ensure.shield() with Nullable arguments