Examples: fixed nil pointer errors in restful-user-resource and restful-user-service