Handle null inputs for optimizer args