Prevent authors from submitting essays in Studio Preview mode

[TIM-258](https://edx-wiki.atlassian.net/browse/TIM-258)

@talbs I've added a call to `alert` instead of `console.log()` so the user at least sees the error message.