Localization in a non-Hermitian flat band lattice with nonlinearity