Fix missing throw exception statement