Fixed crash when endpoint is empty

Closes #377
Updated CocoaPods
Updated CocoaPods dependencies