Change assertion to a warning when view is not in map

Review @confucious