[ticket/12362] Throw exception in schema generator on unresolvable dependency

Make sure we throw an exception in the schema generator if we come across an
unresolvable dependency. Otherwise we'll get stuck in a infinite loop that
needs to be cancelled by the user or the maximum execution time.

Ticket: http://tracker.phpbb.com/browse/PHPBB3-12362

PHPBB3-12362