PLD: check for blank file value in JS, closes #519