libui: Change hasSignaled to return optional<bool> am: 6db42ac36e
am: f873bd4d31

Change-Id: I5fd6b5d7c46d620a7c5b526098d975273888f2a1