Fix al_restore_state after last optimisation.

Broken in commit 7ae440b
"Optimise al_restore_state if saved target display/bitmap are unchanged."