Fix unpublished query in messages admin