Prevent crash on invalid client