OD-4008. Replace PHP NOTICE with exception