yaffs direct: Fix bounds issue in handle to pointer function