Prevent to throw error when script or styles assets are empty