Deploying without unit available

Sometimes, I am able to deploy a unit when its supply reads ‘0’. Normally, the icon should turn red. Here’s an example: