getActivity null check is added for pre and post execute functions of AsynTasks because sometimes fragment onDetach can be called and it throws null pointer exception.
Moreover
progress bar visibility is set to false if an
exception occurs in ButterflyEndlessAdapter.
resolves #302
Standart connectivity message appears if exception occurs in ButterflyEndlessAdapter.