Note that only Drupal has FALSE as the default previous state, other implementations uses an empty object.
1. Handle previousState being an empty object.2. Update https://h5p.org/comment/7520#comment-7520