Fixed a bug in removing roles from applications which had not yet been saved (Apply button not yet clicked)