Fix PHP warning on submit invoice