Bugfix: Script error when viewing mappings

Story https://www.pivotaltracker.com/story/show/63348520

From #896, rebased onto `release/0.9a20` branch