Fix inspection results discussed in #67 - UrlShortener.java (phase 2)

Changes
-- Bring back unused code (as seen in another pull request that its going to be required soon.)
-- Fix unchecked call for Android AsyncTask execute() by specifying the generic types
-- Check for NPE