check if link header exists and if last exists
Merge pull request #1 from lalitkapoor/1-error-thrown-when-link-header-doesnt-contain-last

error thrown when link header doesn't contain last