Fixed setLastPage and getLastPage in EMedia delegate