Fixes: runtime warnings when trying to render 0-size icon

Task-number: QTBUG-37035
Change-Id: I014988cdb57a2001685a8d50d79ee103322ed021
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>