clock: catch IndexOutOfBoundsException

Change-Id: I0a7f06ddcb3cf87595b025213a0cbbadb1d5991a