We use "кто-то не был" when we say about person's actions or experience. I never stayed in St.P. I didn't attend a meeting.

"Кого-то не было" means that somebody was absent:
У меня алиби: меня...