IDE-1136

Add the primary runtime not liferay runtime resolution. Almost the same
logic with primary runtime not set resolution, just clean the primary
runtime first.