avidec: remove unneeded null check