Closes #781 . Fix error when unlinking Onix licence. Removed call to docstore.