Check is $rel is NULL before using

Closes #3555918

Merge request reports

Loading