Do not output "new galleries" for API requests

Output for new galleries is not very digestible without extra JS
Merge pull request #5141 from Wikia/newgalleries-not-for-API

Do not output "new galleries" for API requests