Fixed null pointer uri when try to edit form from History