fix required test

Summary: test if param is != null too

Test Plan: run post request with null, "null", and "a@a.a" for an email key with required:true

Reviewers: dougli, SeanDunford

CC: YassineA, steph

Differential Revision: http://phabricator.palinka.me/D1828