If you could simply choose, by for example holding shift while allocating research points, to have your choice affect no other bars, that'd be it. Problem fixed. Then if you had un-allocated points when trying to leave the screen, you'd be stopped from doing so.