Back-end:
 - fixed a bug where the server crashes if there are no running scripts.