Doncaster Rovers have agreed a deal with Manchester United to extend Sam Johnstone's loan deal for the rest of the season.