added null check, because it can be that the detector is not produced
this logic was moved to the module
Merge branch '3.0' of github.com:errai/errai into 3.0