[#73962924] added check to see if userId is empty. If so, do not use it....

... If locationId is somehow empty, throw exception.