JModelAdmin publish method fix

Assume there are n items, with n > 1, where some items I can edit the status and others I can't edit. When I try edit their status all at once, it display an error message saying that I haven't permission to edit the status and a success message saying that n-1 items were modified, but no item changed. In this PR, I fix it.