Change deprecation warning method to new when current user is not set.