two safeguards for DbWriteFragment, dismiss fragment in onPostExecute, do not crash if no object retrieved from activity