Make sure IFM_AVALID is also set when checking ifm_status.

Submitted by:	yongari