View.map with empty sequence should return empty list

closes #5765