Skip placeHolderSize logic when no match is found

Fixes: 343147836
Test: New test added
Change-Id: Ief0b6d1b03f9f35dd91c6b002463db76767f7182
2 files changed