test nullity of alarm before setting it to done or failed