Fix calling methods on null objects

Some object methods were calling without checking if the object
exist or not.
1 job for !134 with work/usta_fix_null_calls in 59 minutes and 12 seconds (queued for 6 minutes and 45 seconds)
detached
Status Job ID Name Coverage
  Build
passed #68222
linux kf5-qt5 qt5.12

00:59:12

19.0%