Fixed error message when a bad id is used in the edit view