Added error message if there is no current_user. Bug#5369168816001