wmadec: prevent null pointer call.