FIX: do not raise exception when svg path is nil (PR #13844)

Bug was introduced here: FIX: Issues with custom icons in themes (#13732) · discourse/discourse@f7ab852 · GitHub

If path is nil, it should not raise an exception and continue logging the error.

GitHub