Make missing credential checking more consistent.