Change asserts in ResourceView to RuntimeExceptions