This change fixes an issue in which asynchronous Polymer operations
caused a test to fail. After flushing the asynchronous operations, the
component's behavior proceeds as expected.
While working on this fix, I also noticed that requests were
parameterized incorrectly.
Keys with values set to undefined are not ignored in request JSON
serialization. This bug is most notable when trying to set projects
up for notifications in the preferences menu using the
gr-watched-projects-editor.
Bug: Issue 4598
Change-Id: Ic1ac13981e00e3a78ae52bdc40e7d6f74fa221fe