fixes use the fact that empty sequences are false

fixed bug #1133094

Change-Id: Ie0514be1cb0ed6741f96334f7457da331f0eebc9
Merge "fixes use the fact that empty sequences are false"