Refworks should not be run in a modal window. Fixes #1042