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