[ticket/13048] Only do not update the session page for ajax requests

The session time still needs to be updated, so e.g. long upload times
with PLupload stop the session from timing out.

https://tracker.phpbb.com/browse/PHPBB3-13048