handle missing userId