#801: fix modal no-metadata dialog

This closes #801. The relevant function is only used in this particular context.

@matthewrmshin, please review.