[WFCORE-210] make deployment scanner treat listFiles() returning null correctly as error case.