Added checking usage deprecated Mage::throwException().