Fixed nil pointer errors in restful-user-resource and restful-user-service