If None comes back from the database, pass it along as a "" so it it doesnt raise an exception killing the task. Add some logging too.