Issue #2209487 by eshta: Fixed js bug when attempting to add an action in context after hitting the cancel button in the form