Display a proper error when the target collection is null.