Avoid throwing when 0 size layer requested

bug:30032790

Change-Id: I8553af0d0b0d59fea6535d03479c4e7134a9f4f9
3 files changed