If you neglected your duty in safeguarding the goods and caused the loss of some goods, you will be then responsible to compensate for stolen goods, but if you did your duty in safeguarding the warehouse, then robbery happened out of your control, then you are not responsible to compensate the stolen goods as far as there was no negligence from your side in safeguarding the warehouse.
Wassalam.