Fix field-value checking to not throw for lone spaces
Merge pull request #2631 from Manishearth/xhr-spaces

Fix field-value checking to not throw for lone spaces; r=jdm