That year he was also convicted of another failure to comply with notification requirements on the sex offenders register as well as one count of harassment without violence.

A spokeswoman from the Ministry of Justice said: “HMP Chelmsford prisoner David Morgan (DOB: 12.05.83) died in hospital on August 30 and our condolences are with Mr Morgan’s family and friends at this difficult time.

“As with all deaths in custody there will be an independent investigation by the Prisons and Probation Ombudsman.”