Fixed NPE when creating new short urls.