I have resolved this issue by myself. Thanks for your help MrAgile though. I deleted the Ajax Extensions tab that was already existing and might have old references. Then I re-added the tab and repeated the whole process. This time I do not get the above error.