[ticket/12090] Move find() call to container and fix tests

PHPBB3-12090