[Olena-patches] milena r1549: Add an error of incompatible types in pnm loading