Changed the getValue utility function not to return null when given ''