Removes modal-content when type or source are empty