Congratulation, you have fixed the bug described in the Pull Request 5238
https://github.com/joomla/joomla-cms/pull/5238/files