Fix for bug #906

Fixes the bug #906 by adding a check for isDecoded in the update loop.