Only create a placeholder with a valid size

fixes #179
Merge pull request #180 from facebook/issue-179

Only create a placeholder with a valid size