Changed getValue to return null for empty hidden inputs but '' for normal empty text inputs; updated tests