This argument applies only to probability of events and not for probability with random variables.
Firstly the definition, $$P(A|B)=\dfrac{P(A \cap B)}{P(B)}$$ applies only when $P(B) \neq 0$.
What is it when $P(B)=0$?
Well, $P(A|B)$ is the probability of $A$ happening given that $B$ happened is ridiculous to even ask. How can you be given that an event that cannot happen has happened? So, it shall remain indeterminate in my opinion.
However, some texts, do give that $P(A|B)=0$ and some others assign $1$, or so my teacher has told us that he has seen one book doing the latter (asssigning $1$).
But, it just does not matter.