coverity#982461 Unchecked dynamic_cast

Change-Id: I3933b2cd03b8e1dff7bcb106d841a429e4d0ba53
Related: fdo#74468 drop hard-coded 'sec' and use FUNIT_SECONDS

Change-Id: I11e2aa39d77c01446387b13ba4bc9f40b61a958a