fixed iteration over non-array values in FormExtractor

please check if this is the right way to fix issue #145