Fixed some bugs with the uploadify document uploader and the error message on the edit page