Fixed crash when auto complete is running on an extender function which is in the end of the file.