Don't invalidate the memory pointed by the arm argument pointer,
if the arm argument pointer is NULL or the size of the memory that it
points to is 0.

This avoids some logging spam, which happens very frequently
with JPEG encoder and WMV decoder.

Change-Id: I00b4adea27466fa56a65ccb795299f61f0e0bc8f
1 file changed