Fixed issue with exception for not markup resources.