Solved ArrayIndexOutOfBoundsException when PL/GL/GP fields are empty