Bug fix: error if form in module is deleted

Fixed the error in module builder, if the form selected for modules has been deleted