[DF-1091] Replace asserts with zero check