[2.5] Wrong reurn page when article is checked out

Backport https://github.com/joomla/joomla-cms/pull/3683 to 2.5.x