Set min and max to 0 if min > max. Bug: Issue 11059 Change-Id: I492ef61322dfb82273dc1ed1fe6ae86640541f11