If it becomes a regular problem then you should really get some tests done to get them checked out.
I know that the one I give it too has teeth problems and has a sensitive tummy sometimes so he is OK to give it to (he has previously had tests that came back all clear). If it were my other one I would get her checked out before giving it to her as she is never a problem.
Always best to check with your vet I think.