Edit module does not load if module in use.

Just found out that you cannot edit a module if if is being used for playing.

It would be nice if an error message was displayed in this case, instead of just no action.