Update post format after post has been updated

This ensures the post format isn't updated before any errors can occur

See #684