Changed onMeasure function.

Current implementation ignores EXACTLY mode in MeasureSpec,
when drawable is null (see first "if"). It causes view to
be null-size when there is no image and that ruins
RelativeLayout. This commit fixes it.