J.K. Rowling would ensure that the programme ‘remains loyal to her original material’ if a deal is struck