Fix handling singleton resources without ID given in the URL