mod_price: added error handling.