"...anything that deprives you of your ability to take actions also prevents you from taking a bonus action."
PHB, page 189
Strictly speaking, it makes sense. You aren't deprived of your ability to take an action (i.e. Surprised, Paralyzed, etc), but the only action available to you in the...