ninja: Don't write subninjas for ninja files that end up being empty.

Review URL: https://codereview.chromium.org/23464038/



git-svn-id: http://gyp.googlecode.com/svn/trunk@1719 78cadc50-ecff-11dd-a971-7dbc132099af